package com.xjtu.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

/**
 * 记录一次费用清单(Bill)实体类
 *
 * @author makejava
 * @since 2023-11-12 14:25:06
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Bill implements Serializable {
    private static final long serialVersionUID = -16797204407375107L;
    
    private Integer id;
    /**
     * FK
     */
    private Integer elderlyId;
    /**
     * 总金额
     */
    private Double totalAmount;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getElderlyId() {
        return elderlyId;
    }

    public void setElderlyId(Integer elderlyId) {
        this.elderlyId = elderlyId;
    }

    public Double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Double totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Bill{" +
                "id=" + id +
                ", elderlyId=" + elderlyId +
                ", totalAmount=" + totalAmount +
                ", remark='" + remark + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}

